Fedora Notes
Table of Contents
Package Management
- Fedora Docs: Package Management
- DNF stands for Dandified YUM
- Packages are rpmfiles
- Users use the dnftool to manage packages
Updating Packages
- Run dnf check-updateto see a list of packages that need updating
- To upgrade an individual package run dnf upgrade <PACKAGE>
- To upgrade all packages run dnf upgrade
Finding Packages
- To search through rpmsrundnf search <PACKAGE>
- To search through all sources run dnf search all <PACKAGE>
Listing Packages
- dnf listwill list all available and installed packages
- dnf list installed <PACKAGE>
- The list command uses GLOB patterns, for example, dnf list installed python*
- To list all installed packages run dnf list installed
- To view all of the install repos and packages installed from those repos run dnf repolist
Getting Package Info
- dnf info <PACKAGE>will give you info about a package
Installing a Package
- dnf install <PACKAGE>
Removing a Package
- dnf remove <PACKAGE>
Upgrading Installed Packages
- sudo dnf update
Upgrading to Latest Fedora Release
sudo dnf upgrade --refresh # reboot if there are any changes sudo dnf install dnf-plugin-system-upgrade sudo dnf system-upgrade download --releasever=36 sudo dnf system-upgrade reboot
Viewing dnf History
- dnfwill record history of packages added and removed
- To view the history run sudo dnf history list
Enabling RPM Fusion
- Fedora Docs: Enabling RPM Fusion
- RPM Fusion is a community repository of packages that are not distributed with Fedora
sudo dnf install \ https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
Installing RPM files
- sudo dnf install <PACKAGE>.rpm
Package List
sudo dnf install \ mg \ gnome-tweaks \ autoconf \ texinfo \ ImageMagick-devel \ glib2-devel \ gtk3-devel \ libgccjit-devel \ jansson-devel \ gnutls-devel \ ncurses-devel \ htop \ mosh \ pass \ pass-otp \ syncthing \ lua-devel \ libass-devel \ ledger \ isync \ notmuch \ sbcl \ clisp \ nethack \ openttd \ python3-pip \ ncdu \ retroarch \ inkscape \ picocom \ abcde \ beets \ beets-plugins \ fluidsynth \ fluid-soundfont-gm \ fluid-soundfont-gs \ gimp \ automake \ SDL2-devel \ SDL2_mixer-devel \ SDL2_net-devel \ glibc-doc
Wayland
- To see if you are in a Wayland session run echo $WAYLAND_DISPLAY
Building Emacs
- clone Emacs from Savannah git clone -b master git://git.sv.gnu.org/emacs.git
- Run the ./autogen.shto build the configure script
- The below command shows the configure flags I like for Emacs
./configure --with-native-compilation \ --with-json \ --with-rsvg \ --with-imagemagick \ --with-pgtk
Hack Font
- Download the latest release of the font from the Hack GitHub page.
- Extract the zip and copy the files to /usr/share/fontsin a folder namedHack
- Download the font config file from GitHub
- Create a user local font config dir if it doesn't exist, mkdir -p ~/.config/fontconfig/conf.d
- Copy the downloaded font config into that folder, cp 45-Hack.conf ~/.config/fontconfig/conf.d
- Regenerate your font cache, fc-cache -f -v
- Verify it is installed with, fc-list | grep Hack
Flatpak
- Flatpak is preinstalled on Fedora
- The Flathub repository needs to be enabled in order to use software from it
- Flatpak: Fedora Setup
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Various Flatpaks
- flatpak install flathub dev.ares.ares
- flatpak install flathub org.signal.Signal
Issue where SDL2 Apps Crash on Exit
- This is probably due to the wayland video driver in SDL2
- A workaround is to set the environment variable SDL_VIDEODRIVERto usex11rather thanwayland
Crispy Doom
- Clone the Crispy Doom Source from GitHub
- Inside the folder run the following:
autoreconf -fiv ./configure make sudo make install
- crispy-doom -iwad DOOM.WAD -file SIGIL_v1_21.wadis an example running the game with a particular iwad and pwad
- More info on command line arguments can be found here, Chocolate Doom Wiki: Command Line Arguments